package javaTest.Singleton;
//饿汉式单例类.在类初始化时，已经自行实例化 
public class Singleton1 {
	private Singleton1(){}
	private static final Singleton1 sing1 = new Singleton1();
	public static Singleton1 getInstance(){
		return sing1;
	} 

}
